cmake_minimum_required(VERSION 3.31)
project(cTest)

include(FetchContent)

set(CMAKE_CXX_STANDARD 20)
#include_directories(D:/psf/clib/boost_1_89_0)
#link_directories(D:/psf/clib/boost_1_89_0/stage/lib)
#find_package(Boost REQUIRED COMPONENTS filesystem)


# 设置Boost库的根目录（应指向 Boost 的安装根目录）
set(BOOST_ROOT "D:/psf/clib/boost_1_89_0")
set(Boost_INCLUDE_DIRS "${BOOST_ROOT}")
set(Boost_LIBRARY_DIRS "${BOOST_ROOT}/stage/lib")
# 禁用搜索系统路径

# 查找Boost库，指定需要的组件
# find_package(Boost REQUIRED COMPONENTS filesystem regex)
message("Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")
message("Boost_LIBRARY_DIRS: ${Boost_LIBRARY_DIRS}")
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})

add_executable(cTest main.cpp
        Test.cpp
        Test.h
        model1/Test2.cpp
        model1/Test2.h
        model1/Test3.cpp
        model1/Test3.h
        model1/Test4.cpp
        model1/Test4.h
        model1/Test5.cpp
        model1/Test6.cpp
        model1/Test5.h
        model1/Test7.cpp
        model1/Test7.h
        model1/Test8.cpp
        model1/Test8.h
        model1/Test9.cpp
        model1/Test9.h
        model1/LeetCode.cpp
        model1/LeetCode.h
        model1/Test10.cpp
        model1/Test10.h
        model1/Test11.h
        model1/Test11.cpp
        model1/Test12.cpp
        model1/Test12.h
)